<?php

namespace backend\modules\business\controllers;

use backend\controllers\BaseController;
use yii\helpers\Url;
use backend\modules\business\methods\Entrance;
/**
 * 财务管理
 * @author      futao
 * @date        2016-2-25
 * @version     2.0
 * @copyright   Copyright 2016 meelier.com
 */
class FinancialController extends BaseController
{
	public $enableCsrfValidation = false;
	public function actionIndex()
	{
		$this->redirect(Url::toRoute('financial/cashier'));
	}
	/**
	 * 收银
	 * @date: 2016-2-25 
	 * @author: futao
	 */
	public function actionCashier()
	{
		try {
			return Entrance::Instance($this)->run();
		}catch (\Exception $e){
			$this->error($e->getMessage());
		}
	}
	
}